package com.woniuxy.controller;

import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.QuestionTypesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 罗蔚
 * @Date 2022/4/27 19:29
 * @Description TODO
 */
@Api(tags = "题目类型")
@RestController
@RequestMapping("/questionTypesController")
public class QuestionTypesController {

    @Autowired
    QuestionTypesService questionTypesService;

    @ApiOperation("查询题目类型")
    @GetMapping("/find")
    public ResponseEntity find(){
        return questionTypesService.find();
    }
}
